package cn.xuguowen.user.designPatten.chain_of_responsibility.article.common;

/**
 * ClassName: WordCountFilter
 * Package: cn.xuguowen.user.designPatten.chain_of_responsibility.article.common
 * Description: 具体的过滤器（字数过滤器）
 *
 * @Author 徐国文
 * @Create 2023/6/3 8:58
 * @Version 1.0
 */
public class WordCountFilter extends BaseArticleFilter{
    @Override
    public boolean doFilter(ArticleContext articleContext) {
        Article article = articleContext.getArticle();
        Long wordCount = article.getWordCount();
        if (wordCount > 10) {
            return true;
        }
        return false;
    }
}
